package com.quanquan.parking.ketop.entity.params.response;

import constants.enums.Result;

public class BaseResponse<T> {
	private Integer resCode;
	private String resMsg;
	private Object data;

	public Integer getResCode() {
		return resCode;
	}

	public void setResCode(Integer resCode) {
		this.resCode = resCode;
	}

	public String getResMsg() {
		return resMsg;
	}

	public void setResMsg(String resMsg) {
		this.resMsg = resMsg;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public BaseResponse(Integer resCode) {
		super();
		this.resCode = resCode;
		this.resMsg = Result.getMsgByCode(resCode);

	}

	public BaseResponse(Integer resCode, String resMsg) {
		super();
		this.resCode = resCode;
		this.resMsg = resMsg;
	}

	public BaseResponse(Integer resCode, String resMsg, Object data) {
		super();
		this.resCode = resCode;
		this.resMsg = resMsg;
		this.data = data;
	}
}
